<template>
  <div>
    <h2>Tab</h2>
    <p>{{ count }}</p>
  </div>
</template>

<script>
export default {
  name: "Tab",
  data() {
    return {
      count: 8,
    };
  },
  mounted() {
    // 事件总线
    this.$bus.$on("par", (count) => {
      this.count = count;
    });
  },
};
</script>

<style>
</style>